<template>
  <div id="app">
    <loading v-model="isLoading"></loading>
    <router-view ></router-view>
  </div>
</template>

<script>
import { Loading,Toast } from 'vux'
import { mapState } from 'vuex'
export default {
  components: {
    Loading,
    Toast
  },
  data(){
    return {

    }
  },
  computed: {
    ...mapState({
      //映射store中的状态
      isLoading:  state => state.app.isLoading
    })
  }
}
</script>

<style lang="css">
/*@import './styles/common.css';*/

</style>

